-- GENERATED SPELL FOR [Twisted Visage] --


function spell0_30625(pUnit, Event) --@Avenger\'s Shield,n/a--
pUnit:FullCastSpellOnTarget(57799,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 7000, 1)
end

function spell1_30625(pUnit, Event) --@Avenger\'s Shield,n/a--
pUnit:FullCastSpellOnTarget(59999,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 7000, 1)
end

function spell2_30625(pUnit, Event) --@Bloodthirst,n/a--
pUnit:FullCastSpellOnTarget(57790,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 617, 1)
end

function spell3_30625(pUnit, Event) --@Bloodthirst,n/a--
pUnit:FullCastSpellOnTarget(60017,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 577, 1)
end

function spell4_30625(pUnit, Event) --@Cat Form,Self--
pUnit:FullCastSpellOnTarget(57655,pUnit)
pUnit:RegisterEvent('Sorts_30625', 585, 1)
end

function spell5_30625(pUnit, Event) --@Cleanse,n/a--
pUnit:FullCastSpellOnTarget(57767,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 608, 1)
end

function spell6_30625(pUnit, Event) --@Consecration,Self--
pUnit:FullCastSpellOnTarget(57798,pUnit)
pUnit:RegisterEvent('Sorts_30625', 8000, 1)
end

function spell7_30625(pUnit, Event) --@Consecration,Self--
pUnit:FullCastSpellOnTarget(59998,pUnit)
pUnit:RegisterEvent('Sorts_30625', 8000, 1)
end

function spell8_30625(pUnit, Event) --@Corruption,n/a--
pUnit:FullCastSpellOnTarget(57645,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 24000, 1)
end

function spell9_30625(pUnit, Event) --@Corruption,n/a--
pUnit:FullCastSpellOnTarget(60016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 24000, 1)
end

function spell10_30625(pUnit, Event) --@Death Grip,n/a--
pUnit:FullCastSpellOnTarget(57602,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 0, 1)
end

function spell11_30625(pUnit, Event) --@Devastate,n/a--
pUnit:FullCastSpellOnTarget(57795,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 652, 1)
end

function spell12_30625(pUnit, Event) --@Devastate,n/a--
pUnit:FullCastSpellOnTarget(60018,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 571, 1)
end

function spell13_30625(pUnit, Event) --@Disengage,n/a--
pUnit:FullCastSpellOnTarget(57635,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 608, 1)
end

function spell14_30625(pUnit, Event) --@Earth Shield,n/a--
pUnit:FullCastSpellOnTarget(57802,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 594, 1)
end

function spell15_30625(pUnit, Event) --@Earth Shield,n/a--
pUnit:FullCastSpellOnTarget(60013,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 553, 1)
end

function spell16_30625(pUnit, Event) --@Earth Shock,n/a--
pUnit:FullCastSpellOnTarget(57783,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 2316, 1)
end

function spell17_30625(pUnit, Event) --@Earth Shock,n/a--
pUnit:FullCastSpellOnTarget(60011,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 2317, 1)
end

function spell18_30625(pUnit, Event) --@Eviscerate,n/a--
pUnit:FullCastSpellOnTarget(57641,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 609, 1)
end

function spell19_30625(pUnit, Event) --@Eviscerate,n/a--
pUnit:FullCastSpellOnTarget(60008,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 543, 1)
end

function spell20_30625(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(57628,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 3000, 1)
end

function spell21_30625(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(59994,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 3000, 1)
end

function spell22_30625(pUnit, Event) --@Flash of Light,Heal--
pUnit:FullCastSpellOnTarget(57766,pUnit)
pUnit:RegisterEvent('Sorts_30625', 1500, 1)
end

function spell23_30625(pUnit, Event) --@Flash of Light,Heal--
pUnit:FullCastSpellOnTarget(59997,pUnit)
pUnit:RegisterEvent('Sorts_30625', 1500, 1)
end

function spell24_30625(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(57629,pUnit)
pUnit:RegisterEvent('Sorts_30625', 5305, 1)
end

function spell25_30625(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(59995,pUnit)
pUnit:RegisterEvent('Sorts_30625', 5260, 1)
end

function spell26_30625(pUnit, Event) --@Greater Heal,Heal--
pUnit:FullCastSpellOnTarget(57775,pUnit)
pUnit:RegisterEvent('Sorts_30625', 2500, 1)
end

function spell27_30625(pUnit, Event) --@Greater Heal,Heal--
pUnit:FullCastSpellOnTarget(60003,pUnit)
pUnit:RegisterEvent('Sorts_30625', 2500, 1)
end

function spell28_30625(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 10301, 1)
end

function spell29_30625(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(57785,pUnit)
pUnit:RegisterEvent('Sorts_30625', 2500, 1)
end

function spell30_30625(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(60012,pUnit)
pUnit:RegisterEvent('Sorts_30625', 2500, 1)
end

function spell31_30625(pUnit, Event) --@Intercept,n/a--
pUnit:FullCastSpellOnTarget(61490,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 0, 1)
end

function spell32_30625(pUnit, Event) --@Judgement of Light,n/a--
pUnit:FullCastSpellOnTarget(57774,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 559, 1)
end

function spell33_30625(pUnit, Event) --@Lifebloom,Self--
pUnit:FullCastSpellOnTarget(57762,pUnit)
pUnit:RegisterEvent('Sorts_30625', 7000, 1)
end

function spell34_30625(pUnit, Event) --@Lifebloom,Self--
pUnit:FullCastSpellOnTarget(59990,pUnit)
pUnit:RegisterEvent('Sorts_30625', 7000, 1)
end

function spell35_30625(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(57781,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 2500, 1)
end

function spell36_30625(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(60009,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 2500, 1)
end

function spell37_30625(pUnit, Event) --@Mangle,n/a--
pUnit:FullCastSpellOnTarget(57657,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 12253, 1)
end

function spell38_30625(pUnit, Event) --@Mangle,n/a--
pUnit:FullCastSpellOnTarget(59988,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 12324, 1)
end

function spell39_30625(pUnit, Event) --@Mind Flay,n/a--
pUnit:FullCastSpellOnTarget(57779,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 3000, 1)
end

function spell40_30625(pUnit, Event) --@Mind Flay,n/a--
pUnit:FullCastSpellOnTarget(60006,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 3000, 1)
end

function spell41_30625(pUnit, Event) --@Moonfire,n/a--
pUnit:FullCastSpellOnTarget(57647,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 12000, 1)
end

function spell42_30625(pUnit, Event) --@Moonfire,n/a--
pUnit:FullCastSpellOnTarget(59987,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 12000, 1)
end

function spell43_30625(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(57789,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 5320, 1)
end

function spell44_30625(pUnit, Event) --@Nourish,Heal--
pUnit:FullCastSpellOnTarget(57765,pUnit)
pUnit:RegisterEvent('Sorts_30625', 1500, 1)
end

function spell45_30625(pUnit, Event) --@Nourish,Heal--
pUnit:FullCastSpellOnTarget(59991,pUnit)
pUnit:RegisterEvent('Sorts_30625', 1500, 1)
end

function spell46_30625(pUnit, Event) --@Plague Strike,n/a--
pUnit:FullCastSpellOnTarget(57599,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 612, 1)
end

function spell47_30625(pUnit, Event) --@Plague Strike,n/a--
pUnit:FullCastSpellOnTarget(59985,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 538, 1)
end

function spell48_30625(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(57777,pUnit)
pUnit:RegisterEvent('Sorts_30625', 15000, 1)
end

function spell49_30625(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(60004,pUnit)
pUnit:RegisterEvent('Sorts_30625', 15000, 1)
end

function spell50_30625(pUnit, Event) --@Rip,n/a--
pUnit:FullCastSpellOnTarget(57661,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 12000, 1)
end

function spell51_30625(pUnit, Event) --@Rip,n/a--
pUnit:FullCastSpellOnTarget(59989,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 12000, 1)
end

function spell52_30625(pUnit, Event) --@Seal of Command,Self--
pUnit:FullCastSpellOnTarget(57769,pUnit)
pUnit:RegisterEvent('Sorts_30625', 590, 1)
end

function spell53_30625(pUnit, Event) --@Seal of Command,n/a--
pUnit:FullCastSpellOnTarget(57770,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 532, 1)
end

function spell54_30625(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(57644,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 3000, 1)
end

function spell55_30625(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(60015,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 3000, 1)
end

function spell56_30625(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(57778,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 18000, 1)
end

function spell57_30625(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(60005,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 18000, 1)
end

function spell58_30625(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(57589,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 580, 1)
end

function spell59_30625(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(59993,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 602, 1)
end

function spell60_30625(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(57640,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 635, 1)
end

function spell61_30625(pUnit, Event) --@Stormstrike,n/a--
pUnit:FullCastSpellOnTarget(51876,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 12350, 1)
end

function spell62_30625(pUnit, Event) --@Thunder Clap,Self--
pUnit:FullCastSpellOnTarget(57832,pUnit)
pUnit:RegisterEvent('Sorts_30625', 30000, 1)
end

function spell63_30625(pUnit, Event) --@Thunder Clap,Self--
pUnit:FullCastSpellOnTarget(60019,pUnit)
pUnit:RegisterEvent('Sorts_30625', 30000, 1)
end

function spell64_30625(pUnit, Event) --@Thunderstorm,Self--
pUnit:FullCastSpellOnTarget(57784,pUnit)
pUnit:RegisterEvent('Sorts_30625', 677, 1)
end

function spell65_30625(pUnit, Event) --@Thunderstorm,Self--
pUnit:FullCastSpellOnTarget(60010,pUnit)
pUnit:RegisterEvent('Sorts_30625', 606, 1)
end

function spell66_30625(pUnit, Event) --@Wrath,n/a--
pUnit:FullCastSpellOnTarget(57648,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 2000, 1)
end

function spell67_30625(pUnit, Event) --@Wrath,n/a--
pUnit:FullCastSpellOnTarget(59986,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30625', 2000, 1)
end

function Sorts_30625(pUnit, Event)
local choix_sorts_30625 = math.random(0, 67)
if choix_sorts_30625 == 0 then
pUnit:RegisterEvent('spell0_30625', 1, 1)
end
if choix_sorts_30625 == 1 then
pUnit:RegisterEvent('spell1_30625', 1, 1)
end
if choix_sorts_30625 == 2 then
pUnit:RegisterEvent('spell2_30625', 1, 1)
end
if choix_sorts_30625 == 3 then
pUnit:RegisterEvent('spell3_30625', 1, 1)
end
if choix_sorts_30625 == 4 then
pUnit:RegisterEvent('spell4_30625', 1, 1)
end
if choix_sorts_30625 == 5 then
pUnit:RegisterEvent('spell5_30625', 1, 1)
end
if choix_sorts_30625 == 6 then
pUnit:RegisterEvent('spell6_30625', 1, 1)
end
if choix_sorts_30625 == 7 then
pUnit:RegisterEvent('spell7_30625', 1, 1)
end
if choix_sorts_30625 == 8 then
pUnit:RegisterEvent('spell8_30625', 1, 1)
end
if choix_sorts_30625 == 9 then
pUnit:RegisterEvent('spell9_30625', 1, 1)
end
if choix_sorts_30625 == 10 then
pUnit:RegisterEvent('spell10_30625', 1, 1)
end
if choix_sorts_30625 == 11 then
pUnit:RegisterEvent('spell11_30625', 1, 1)
end
if choix_sorts_30625 == 12 then
pUnit:RegisterEvent('spell12_30625', 1, 1)
end
if choix_sorts_30625 == 13 then
pUnit:RegisterEvent('spell13_30625', 1, 1)
end
if choix_sorts_30625 == 14 then
pUnit:RegisterEvent('spell14_30625', 1, 1)
end
if choix_sorts_30625 == 15 then
pUnit:RegisterEvent('spell15_30625', 1, 1)
end
if choix_sorts_30625 == 16 then
pUnit:RegisterEvent('spell16_30625', 1, 1)
end
if choix_sorts_30625 == 17 then
pUnit:RegisterEvent('spell17_30625', 1, 1)
end
if choix_sorts_30625 == 18 then
pUnit:RegisterEvent('spell18_30625', 1, 1)
end
if choix_sorts_30625 == 19 then
pUnit:RegisterEvent('spell19_30625', 1, 1)
end
if choix_sorts_30625 == 20 then
pUnit:RegisterEvent('spell20_30625', 1, 1)
end
if choix_sorts_30625 == 21 then
pUnit:RegisterEvent('spell21_30625', 1, 1)
end
if choix_sorts_30625 == 22 then
pUnit:RegisterEvent('spell22_30625', 1, 1)
end
if choix_sorts_30625 == 23 then
pUnit:RegisterEvent('spell23_30625', 1, 1)
end
if choix_sorts_30625 == 24 then
pUnit:RegisterEvent('spell24_30625', 1, 1)
end
if choix_sorts_30625 == 25 then
pUnit:RegisterEvent('spell25_30625', 1, 1)
end
if choix_sorts_30625 == 26 then
pUnit:RegisterEvent('spell26_30625', 1, 1)
end
if choix_sorts_30625 == 27 then
pUnit:RegisterEvent('spell27_30625', 1, 1)
end
if choix_sorts_30625 == 28 then
pUnit:RegisterEvent('spell28_30625', 1, 1)
end
if choix_sorts_30625 == 29 then
pUnit:RegisterEvent('spell29_30625', 1, 1)
end
if choix_sorts_30625 == 30 then
pUnit:RegisterEvent('spell30_30625', 1, 1)
end
if choix_sorts_30625 == 31 then
pUnit:RegisterEvent('spell31_30625', 1, 1)
end
if choix_sorts_30625 == 32 then
pUnit:RegisterEvent('spell32_30625', 1, 1)
end
if choix_sorts_30625 == 33 then
pUnit:RegisterEvent('spell33_30625', 1, 1)
end
if choix_sorts_30625 == 34 then
pUnit:RegisterEvent('spell34_30625', 1, 1)
end
if choix_sorts_30625 == 35 then
pUnit:RegisterEvent('spell35_30625', 1, 1)
end
if choix_sorts_30625 == 36 then
pUnit:RegisterEvent('spell36_30625', 1, 1)
end
if choix_sorts_30625 == 37 then
pUnit:RegisterEvent('spell37_30625', 1, 1)
end
if choix_sorts_30625 == 38 then
pUnit:RegisterEvent('spell38_30625', 1, 1)
end
if choix_sorts_30625 == 39 then
pUnit:RegisterEvent('spell39_30625', 1, 1)
end
if choix_sorts_30625 == 40 then
pUnit:RegisterEvent('spell40_30625', 1, 1)
end
if choix_sorts_30625 == 41 then
pUnit:RegisterEvent('spell41_30625', 1, 1)
end
if choix_sorts_30625 == 42 then
pUnit:RegisterEvent('spell42_30625', 1, 1)
end
if choix_sorts_30625 == 43 then
pUnit:RegisterEvent('spell43_30625', 1, 1)
end
if choix_sorts_30625 == 44 then
pUnit:RegisterEvent('spell44_30625', 1, 1)
end
if choix_sorts_30625 == 45 then
pUnit:RegisterEvent('spell45_30625', 1, 1)
end
if choix_sorts_30625 == 46 then
pUnit:RegisterEvent('spell46_30625', 1, 1)
end
if choix_sorts_30625 == 47 then
pUnit:RegisterEvent('spell47_30625', 1, 1)
end
if choix_sorts_30625 == 48 then
pUnit:RegisterEvent('spell48_30625', 1, 1)
end
if choix_sorts_30625 == 49 then
pUnit:RegisterEvent('spell49_30625', 1, 1)
end
if choix_sorts_30625 == 50 then
pUnit:RegisterEvent('spell50_30625', 1, 1)
end
if choix_sorts_30625 == 51 then
pUnit:RegisterEvent('spell51_30625', 1, 1)
end
if choix_sorts_30625 == 52 then
pUnit:RegisterEvent('spell52_30625', 1, 1)
end
if choix_sorts_30625 == 53 then
pUnit:RegisterEvent('spell53_30625', 1, 1)
end
if choix_sorts_30625 == 54 then
pUnit:RegisterEvent('spell54_30625', 1, 1)
end
if choix_sorts_30625 == 55 then
pUnit:RegisterEvent('spell55_30625', 1, 1)
end
if choix_sorts_30625 == 56 then
pUnit:RegisterEvent('spell56_30625', 1, 1)
end
if choix_sorts_30625 == 57 then
pUnit:RegisterEvent('spell57_30625', 1, 1)
end
if choix_sorts_30625 == 58 then
pUnit:RegisterEvent('spell58_30625', 1, 1)
end
if choix_sorts_30625 == 59 then
pUnit:RegisterEvent('spell59_30625', 1, 1)
end
if choix_sorts_30625 == 60 then
pUnit:RegisterEvent('spell60_30625', 1, 1)
end
if choix_sorts_30625 == 61 then
pUnit:RegisterEvent('spell61_30625', 1, 1)
end
if choix_sorts_30625 == 62 then
pUnit:RegisterEvent('spell62_30625', 1, 1)
end
if choix_sorts_30625 == 63 then
pUnit:RegisterEvent('spell63_30625', 1, 1)
end
if choix_sorts_30625 == 64 then
pUnit:RegisterEvent('spell64_30625', 1, 1)
end
if choix_sorts_30625 == 65 then
pUnit:RegisterEvent('spell65_30625', 1, 1)
end
if choix_sorts_30625 == 66 then
pUnit:RegisterEvent('spell66_30625', 1, 1)
end
if choix_sorts_30625 == 67 then
pUnit:RegisterEvent('spell67_30625', 1, 1)
end
end

function mob30625_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30625', math.random(1500, 3000), 1)
end

function mob30625_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30625_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30625_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30625, 1, 'mob30625_Action')
RegisterUnitEvent(30625, 2, 'mob30625_Leave')
RegisterUnitEvent(30625, 3, 'mob30625_Kill')
RegisterUnitEvent(30625, 4, 'mob30625_Die')
